package com.aaa.dao;

import java.util.List;
import java.util.Map;

public interface CarDAO {
	
	
	List<Map<String,Object>>  listProductByUid(Integer  uid);
	
	
	/**
	 * 修改购物车商品数量
	 * update car set  num = num + ?  where uid = ?  and pid = ?
	 */
	int updateProductNo(Integer uid, Map<String,Object> args );
	
	/**
	 * 添加购物车  args   session 
	 * insert  into car  (uid,pid,pname,pimage,price,num) values (?,?,?,?,?,?)
	 */
	int saveProductToCar(Integer uid , Map<String,Object> args);
	
	
	
	boolean  isAddCar(Integer uid,String  pid);
}
